package com.ruizhong.PIW.controller;

import com.ruizhong.PIW.service.OperationService;
import com.ruizhong.PIW.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/operation")
@CrossOrigin
public class OperationController {
    @Autowired
    private OperationService operationService;
    @GetMapping("/getTableOperations/{tableId}")
    public Result getTableOperations(@PathVariable Integer tableId){
        return operationService.getOperationByTitle(tableId);
    }
}
